<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/style/cssMain.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/style/jQuery.js"></script>
    <script type="text/javascript" src="/style/jQuery.Wresize.js"></script>
    <script type="text/javascript">
	  $(function() {
		$(window).wresize(alertCoord);
		alertCoord();
	  });
	  
	  function alertCoord() {
	    var winWidth = ($(window).width() - 0) / 2;
		var winHeight = ($(window).height() - 100) / 2;
		var bodyWidth = $("#eBody").width() / 2;
		var bodyHeight = $("#eBody").height() / 2;
		var newWidth = winWidth - bodyWidth;
		var newHeight = winHeight - bodyHeight;
		
		if(winWidth < bodyWidth) newWidth = 10;
		if(winHeight < bodyHeight) newHeight = 10;
		
		$("#eBody").animate({ left: newWidth, top: newHeight }, 0, function(){
		  $(this).show();	
		});
	  }
	</script>
  </head>
  
    <div id="eBody" style="position: absolute; width: 300px;">
      <form action="<?php echo site_url('mang/login'); ?>" method="post">
      <div class="eSheet">
        <div class="eEdit">
          <?php echo validation_errors(); ?>
          <dl>
            <dt>用户名</dt>
            <dd><input class="text" name="user" type="text" value="<?php echo $eu; ?>" style="width: 250px;" /></dd>
          </dl>
          <dl>
            <dt>密码</dt>
            <dd><input class="text" name="pass" type="password" style="width: 250px;" /></dd>
          </dl>
        </div>
      </div>
      <div class="eTool"><input class="button" type="submit" value="登录" /></div>
      </form>
    </div>
  </body>
</html>


